import { storeContext } from "./StoreProvider";
import { RootStoreType } from "../models/index";
import { useStoreData } from "./useStoreData";

export const useRootData = <Selection>(
  dataSelector: (store: RootStoreType) => Selection
) => useStoreData(storeContext, (contextData) => contextData!, dataSelector);
